package com.xingzhe.learning.feignclient;

import com.xingzhe.content.model.dto.TeachplanDto;
import com.xingzhe.content.model.po.CoursePublish;
import com.xingzhe.content.model.po.Teachplan;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author Mr.M
 * @version 1.0
 * @description 内容管理远程接口
 * @date 2022/10/25 9:13
 */
@FeignClient(value = "content-api",fallbackFactory = ContentServiceClientFallbackFactory.class)
public interface ContentServiceClient {

    @ResponseBody
    @GetMapping("/content/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);

    @ApiOperation("供学习中心服务调用的查询课程计划信息")
    @GetMapping("/content/teachplan/getOne/{teachplanId}")
    public Teachplan getOne(@PathVariable("teachplanId") Long teachplanId);

}
